package application;

import application.dao.entity.User;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;

public class Athlete_enroll_already_controller extends BaseController {

    @FXML
    public TextField p_mobile;
    @FXML
    public TextField p_address;
    @FXML
    public TextField p_idCard;
    @FXML
    public RadioButton p_man;
    @FXML
    public RadioButton p_woman;
    @FXML
    public TextField p_realName;
    @FXML
    public TextField p_name;
    @FXML
    private Menu menu_enroll;

    @FXML
    private Menu menu_main;

    @FXML
    private MenuItem menu_informations_announcements;

    @FXML
    private MenuItem menu_informations_news;

    @FXML
    private ImageView clickToSearch;

    @FXML
    private Menu menu_person;

    @FXML
    private Menu menu_scores;

    @FXML
    void onClickToSearch(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_main(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_person(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_enroll(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_scores(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_informations_announcements(ActionEvent event) {

    }

    @FXML
    void onCheckMenu_informations_news(ActionEvent event) {

    }


    @Override
    public void init() {
        initShow();
    }

    private void initShow() {
        User loginUser = Global.loginUser;
        p_name.setText(loginUser.getIdCard());
        p_name.setText(loginUser.getUserName());
        p_mobile.setText(loginUser.getTelNumber());
        p_realName.setText(loginUser.getRealName());
        p_address.setText(loginUser.getHomeAddress());
    }

    public void sureSign(MouseEvent mouseEvent) {
        System.out.println("sign");
    }

    public void fix(MouseEvent mouseEvent) {
        System.out.println("fix");
    }
}